export default {
  inheritAttrs: false,

  props: ['age'],

  template: `
    <div>
      child {{age2}}
    </div>
  `,

  data() {
    return {
      age2: 0
    }
  },

  watch: {
    age: {
      immediate: true,
      handler: (newValue) => {
        console.log(newValue)
      }
    }
  },

  mounted() {
    this.$emit('update:message', 'world')
  },

  updated() {
    console.log(100)
  },
}